<?php



use think\facade\Route;



Route::group(function (){

    /*** 登录开始 ***/

    Route::group(function (){

        Route::rule('/admin/getCode','admin.Main/getCode');

        Route::rule('/admin/login','admin.Main/login');
        //定时任务--不验证登录
        Route::rule('/admin/shopalliance/test','admin.shopalliance/test');

    });

    /*** 登录结束 ***/



    /*** 需要登录的操作 ***/

    Route::group(function (){

        Route::rule('/admin/layout','admin.Main/layout');

        Route::rule('/admin/editPwd','admin.Main/editPwd');

        

        //配置

        Route::rule('/admin/getSettingData','admin.setting/getData');

        Route::rule('/admin/saveSettingData','admin.setting/saveData');
        Route::rule('/admin/configup','admin.setting/configup');
        Route::rule('/admin/configinfo','admin.setting/configinfo');

        //banner设置

        Route::rule('/admin/getBanner','admin.banner/info');

        Route::rule('/admin/saveBanner','admin.banner/save');

        Route::rule('/admin/linkCate','admin.banner/linkCate');

        Route::rule('/admin/linkList','admin.banner/linkList');

        Route::rule('/admin/delBanner','admin.banner/del');

        Route::rule('/admin/saveBannerEffect','admin.banner/saveEffect');
        //短信模板

        Route::rule('/admin/getSmsTplList','admin.setting/getSmsTplList');

        Route::rule('/admin/showSmsTpl','admin.setting/showSmsTpl');

        Route::rule('/admin/saveSmsTpl','admin.setting/saveSmsTpl');

        Route::rule('/admin/delSmsTpl','admin.setting/delSmsTpl');



        //首页统计数据

        Route::rule('/admin/getCountData','admin.Main/getCountData');

        Route::rule('/admin/getMiniappUseRank','admin.Main/getMiniappUseRank');

        //商户

        Route::group(function (){

            Route::rule('/admin/getAccountList','admin.Account/index');

            Route::rule('/admin/addAccount','admin.Account/addAccount');

            Route::rule('/admin/editAccount','admin.Account/editAccount');

            Route::rule('/admin/getAccountShopList','admin.Account/getAccountShopList');

        });



        //商铺

        Route::group(function (){

            Route::rule('/admin/getShopList','admin.Shop/index');

            Route::rule('/admin/showShop','admin.Shop/show');

            Route::rule('/admin/renewShop','admin.Shop/renew');

            Route::rule('/admin/delShop','admin.Shop/delShop');

            Route::rule('/admin/shop_display','admin.Shop/shopdisplay');

            Route::rule('/admin/shop_display_is','admin.Shop/shopdisplayis');

            Route::rule('/admin/statusShop','admin.Shop/statusShop');
            Route::rule('/admin/lockShop','admin.Shop/lockShop');

            //客服

            Route::rule('/admin/getKefuList','admin.Shop/getKefuList');

            Route::rule('/admin/showKefu','admin.Shop/showKefu');

            Route::rule('/admin/saveKefu','admin.Shop/saveKefu');

            Route::rule('/admin/delKefu','admin.Shop/delKefu');

            Route::rule('/admin/appointKefu','admin.Shop/appointKefu');

            Route::rule('/admin/defaultKefu','admin.Shop/defaultKefu');

            //支付配置

            Route::rule('/admin/showShopPayment','admin.Shop/showShopPayment');

            Route::rule('/admin/saveShopPayment','admin.Shop/saveShopPayment');

            

              //小程序免认证通道

            Route::rule('/admin/getPassagewayList','admin.Shop/getPassagewayList');

            Route::rule('/admin/savePassageway','admin.Shop/savePassageway');

        });



        //应用

        Route::group(function (){

            Route::rule('/admin/getApplianceList','admin.Appliance/index');

            Route::rule('/admin/showAppliance','admin.Appliance/show');

            Route::rule('/admin/applianceGetAccountData','admin.Appliance/getAccountData');

            Route::rule('/admin/saveAppliance','admin.Appliance/save');

             Route::rule('/admin/cloudRegister','admin.cloud/register');

            Route::rule('/admin/cloudInit','admin.cloud/initData');

            

            Route::rule('/admin/getFrameV','admin.cloud/getFrameV');

            Route::rule('/admin/getFrameFile','admin.cloud/getFrameFile');

            Route::rule('/admin/decompressionFrameFile','admin.cloud/decompressionFrameFile');

            Route::rule('/admin/moveFrameFile','admin.cloud/moveFrameFile');

            Route::rule('/admin/installFrameSql','admin.cloud/installFrameSql');

            Route::rule('/admin/overFrame','admin.cloud/overFrame');

            

            Route::rule('/admin/getPhpCodeV','admin.cloud/getPhpCodeV');

            Route::rule('/admin/getPhpCodeFile','admin.cloud/getPhpCodeFile');

            Route::rule('/admin/decompressionPhpFile','admin.cloud/decompressionPhpFile');

            Route::rule('/admin/movePhpFile','admin.cloud/movePhpFile');

            Route::rule('/admin/installPhpSql','admin.cloud/installPhpSql');

            Route::rule('/admin/overPhpUpdate','admin.cloud/overPhpUpdate');

            

            Route::rule('/admin/getMiniappV','admin.cloud/getMiniappV');

            Route::rule('/admin/planMiniappResource','admin.cloud/planMiniappResource');

            Route::rule('/admin/uploadMiniapp','admin.cloud/uploadMiniapp');

            Route::rule('/admin/overMiniapp','admin.cloud/overMiniapp');

            Route::rule('/admin/createFromDraft','admin.cloud/createFromDraft');

            //激活码

            Route::rule('/admin/generateActivationCode','admin.Appliance/generateActivationCode');

            Route::rule('/admin/getActivationCodeList','admin.Appliance/getActivationCodeList');

            Route::rule('/admin/delActivationCode','admin.Appliance/delActivationCode');

			

	   

        });

        //模版

        Route::group(function (){

            Route::rule('/admin/getTemplateList','admin.template/index');

            Route::rule('/admin/onlineTemplate','admin.template/online');

            Route::rule('/admin/delTemplate','admin.template/delete');

            Route::rule('/admin/getTemplateDetail','admin.template/show');

            Route::rule('/admin/saveTemplateDetail','admin.template/save');

        });
        //联盟设置

        Route::group(function (){

            Route::rule('/admin/shopalliance/list','admin.shopalliance/list');
            Route::rule('/admin/shopalliance/info','admin.shopalliance/info');
            Route::rule('/admin/shopalliance/effect','admin.shopalliance/effect');
            Route::rule('/admin/shopalliance/del','admin.shopalliance/del');
            Route::rule('/admin/shopalliance/conf_info','admin.shopalliance/conf_info');
            Route::rule('/admin/shopalliance/conf_edit','admin.shopalliance/conf_edit');
            Route::rule('/admin/shopalliance/edit','admin.shopalliance/edit');
            Route::rule('/admin/shopalliance/add','admin.shopalliance/add');
            Route::rule('/admin/shopalliance/shop_list','admin.shopalliance/shop_list');
            Route::rule('/admin/shopalliance/test','admin.shopalliance/test');

        });
        //商铺分类

        Route::group(function (){

            Route::rule('/admin/shopbrand/list','admin.shopbrand/list');
            Route::rule('/admin/shopbrand/info','admin.shopbrand/info');
            Route::rule('/admin/shopbrand/del','admin.shopbrand/del');
            Route::rule('/admin/shopbrand/edit','admin.shopbrand/edit');
            Route::rule('/admin/shopbrand/add','admin.shopbrand/add');
            Route::rule('/admin/shopbrand/effect','admin.shopbrand/effect');
            Route::rule('/admin/shopbrand/sort','admin.shopbrand/sort');

        });
        //会员

        Route::group(function (){
            Route::rule('/admin/member/list','admin.member/list');
            Route::rule('/admin/member/info','admin.member/info');

        });
        //推广管理
        Route::group(function (){
            Route::rule('/admin/promotionteam/list','admin.promotionteam/list');
            Route::rule('/admin/promotionteam/info','admin.promotionteam/info');
            Route::rule('/admin/promotionteam/effect','admin.promotionteam/effect');
            Route::rule('/admin/promotionteam/del','admin.promotionteam/del');
            Route::rule('/admin/promotionteam/edit','admin.promotionteam/edit');
            Route::rule('/admin/promotionteam/add','admin.promotionteam/add');

        });
        //结算
        Route::group(function (){

            Route::rule('/admin/withdraw/shopWithdrawList','admin.withdraw/shopWithdrawList');
            Route::rule('/admin/withdraw/shopWithdrawStatus','admin.withdraw/shopWithdrawStatus');
            Route::rule('/admin/withdraw/shopWithdrawPayment','admin.withdraw/shopWithdrawPayment');
            Route::rule('/admin/withdraw/memberWithdrawList','admin.withdraw/memberWithdrawList');
            Route::rule('/admin/withdraw/memberWithdrawStatus','admin.withdraw/memberWithdrawStatus');
            Route::rule('/admin/withdraw/memberWithdrawPayment','admin.withdraw/memberWithdrawPayment');
            Route::rule('/admin/withdraw/shopWithdrawExport','admin.Export/shopWithdrawExport');
            Route::rule('/admin/withdraw/memberWithdrawExport','admin.Export/memberWithdrawExport');

        });

    })->middleware(\app\platform\middleware\AdminCheck::class);

    /*** 需要登录的操作 ***/

})->middleware(\app\platform\middleware\AdminBase::class);

